import { connect } from 'react-redux'
import RegisterForm from '../components/RegisterForm'
import {registUser} from '../actions'

const mapStateToProps = (state, ownProps) => {
  return {
  }
}

const mapDispatchToProps = (dispatch, ownProps) => {
  return {
    register: (name, mail, passwd) => {
      dispatch(registUser(name, mail, passwd))
    }
  }
}

export default connect(mapStateToProps, mapDispatchToProps)(RegisterForm)
